home *** CD-ROM | disk | FTP | other *** search
/ Aminet 1 (Walnut Creek) / Aminet - June 1993 [Walnut Creek].iso / aminet / gfx / 3d / rayshade40_enh2.lha / ENHANCE / fracland.doc < prev    next >
Text File  |  1992-07-12  |  1KB  |  36 lines

  1.  
  2.  
  3.  
  4. Syntax:
  5.     fracland [surface] "seed" "subdiv"
  6.  
  7.     This primitive creates a fractal surface centered at x = 0.5, y = 0.5
  8. and ranging from x = y = 0 to x = y = 1. It is actually a heightfield primitive
  9. that is generated within rayshade rather than being read in from a file.
  10.  
  11.     The "seed" value is the seed for the random number function.  The seed
  12. value specifies the shape of the surface -- changing the seed value will
  13. randomly change the surface shape.
  14.  
  15.     The "subdiv" value is the number of subdivisions for the surface --
  16. subdiv = 0 will produce a flat square, subdiv > 0 will produce a square with an
  17. ever more detailed surface.  So far, rayshade seems to have trouble with
  18. subdivisions greater than eight (if anyone finds otherwise please tell me!!)
  19. and produces surfaces with "holes" in it for values greater than this.
  20.  
  21.     The number of points in the surface follows the following formulas:
  22. size (number of points per side) = (2^subdiv) + 1; total points = size^2.
  23.  
  24.     The four corner points will always have an altitude of zero, the max
  25. altitude should never be never be more 1.0 and the min should never be less
  26. than -1.0.
  27.  
  28.  
  29.     Any bugs or comments can be sent to me at lcoffin@clciris.chem.umr.edu.
  30.  
  31.  
  32.     ---Larry Coffin
  33.         lcoffin@clciris.chem.umr.edu
  34.  
  35.  
  36.